import abstraction.Shape;
import abstraction.refinedAbstraction.Circle;
import abstraction.refinedAbstraction.Square;
import implementor.concreteImplementor.BlueColor;
import implementor.concreteImplementor.RedColor;

// 客户端代码
public class BridgePatternDemo {
    public static void main(String[] args) {
        // 创建红色圆形
        Shape redCircle = new Circle(new RedColor());
        redCircle.draw();

        // 创建蓝色方形
        Shape blueSquare = new Square(new BlueColor());
        blueSquare.draw();
    }
}